Why isn't my JavaScript date function returning the current time correctly